﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace WCommon.Sockets
{
    public class TcpConnection : ITcpConnection
    {
        public Guid Id { get; }

        public string Name { get; }

        public Socket Socket { get; private set; }

        public bool IsConnected
        {
            get { return Socket != null && Socket.Connected; }
        }

        public EndPoint LocalEndPoint { get; }

        public EndPoint RemotingEndPoint { get; }

        public void Close()
        {
            throw new NotImplementedException();
        }

        public void QueueMessage(byte[] message)
        {
            throw new NotImplementedException();
        }
    }
}
